<% include ../pageHeader %>
<div id="mainWrapper">
    <div id="content" class="content">
        <div id="innerContent">
            <div class="textbox">
                <div class="textbox-title"><h4><%= __('database') %></h4></div>
                <div class="textbox-content">
                    <table border="0" cellpadding="0" cellspacing="1">
                        <tr>
                            <td class="formbox-rowheader"><%= __('db_path') %>:</td>
                            <td class="formbox-content"><%= helper.HTMLEncodeLite(info.path) %></td>
                        </tr>
                        <tr>
                            <td class="formbox-rowheader"><%= __('db_size') %>:</td>
                            <td class="formbox-content"><%= info.size %> | <a
                                        href="?in=database&act=backup"><%= __('backup') %></a> | <a
                                        href="?in=database&act=compact"><%= __('compact') %></a></td>
                        </tr>
                        <% if(strResult != ""){ %>
                            <tr>
                                <td class="formbox-rowheader" valign="top"><%= __('op_result') %>:</td>
                                <td class="formbox-content"><%= strResult %></td>
                            </tr>
                        <% } %>
                        <tr>
                            <td class="formbox-rowheader" valign="top"><%= __('backup_list') %>:</td>
                            <td class="formbox-content">
                                <% for(var i = 0;i < arrBackup.length;i++){
                                if(arrBackup[i].type == "file" &&
                                        (arrBackup[i].name.indexOf(".bak") > 0 || arrBackup[i].name.indexOf(".tmp") >
                                                0)){ %>
                                    <a href="<%= strDBPath+escape(arrBackup[i].name) %>"><img
                                                src="<%= theCache.settings["imageFolder"] %>/icon_file.gif"/>
                                        <b><%= helper.HTMLEncodeLite(arrBackup[i].name) %></b></a> |
                                    <%= arrBackup[i].size %> |
                                    <a href="?in=database&act=restore&file=<%= escape(arrBackup[i].name) %>"
                                       onclick="return confirm('<%= __('confirm_restore') %>?')"><%= __('restore') %></a>
                                    |
                                    <a href="?in=database&act=delete&file=<%= escape(arrBackup[i].name) %>"
                                       onclick="return confirm('<%= __('confirm_delete_file') %>?')"><%= __('delete') %></a>
                                    <br/>
                                <% }
                                } %>
                            </td>
                        </tr>
                    </table>
                </div>
            </div>
        </div>
    </div>
    <% include adminSidebar %>
    <div class="clear"></div>
</div>
<% include ../pageFooter %>
